<h1>Listing electricians</h1>

<table>
  <tr>
    <th>Name</th>
    <th>Percentage</th>
    <th>Pending</th>
    <th>Mobile</th>
    <th>Mobile1</th>
    <th>Address</th>
    <th>Others</th>
    <th></th>
    <th></th>
    <th></th>
  </tr>

<% @electricians.each do |electrician| %>
  <tr>
    <td><%= electrician.name %></td>
    <td><%= electrician.percentage %></td>
    <td><%= electrician.pending %></td>
    <td><%= electrician.mobile %></td>
    <td><%= electrician.mobile1 %></td>
    <td><%= electrician.address %></td>
    <td><%= electrician.others %></td>
    <td><%= link_to 'Show', electrician %></td>
    <td><%= link_to 'Edit', edit_electrician_path(electrician) %></td>
    <td><%= link_to 'Destroy', electrician, method: :delete, data: { confirm: 'Are you sure?' } %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New Electrician', new_electrician_path %>
